<!-- 404 页面 -->
<template>
    <div class="not-found">
        <img src="../../assets/404.png" alt="">
        <div class="btn">
            <!-- <el-button>返回</el-button> -->
            <el-button @click="goHome">首页</el-button>
        </div>
    </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
    $router.push('/')
}
</script>

<style lang="scss" scoped>
.not-found {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    img {
        width: 60%;
    }

    .btn {
        .el-button {
            margin-left: 50px;
        }
    }
}
</style>